import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)
const Layout = () => import('../pages/Layout')
const Home = () => import('../pages/home/Home')
const Username = () => import('../pages/username/Username')
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Layout',
      component: Layout,
      children:[
        {
          path: '/home',
          name: 'home',
          component: Home,
        },
        {
          path: '/username',
          name: 'username',
          component: Username,
        }
      ]
    }
  ]
})
